package com.example.katalk_nari;

import java.text.SimpleDateFormat;
import java.util.Locale;

public class ReciveMessageData extends ChatItemData {

	private String mMessage;
	private String mWriter;

	public ReciveMessageData(String msg, String writer) {
		super(ChatItemData.TYPE_RECIVE);
		mMessage = msg;
		mWriter = writer;
	}

	public String getMessage() {
		return mMessage;
	}
	
	public String getWriter() {
		return mWriter;
	}
	
	public String getDateTimeToString() {
		SimpleDateFormat formatter = new SimpleDateFormat ( "a HH:mm", Locale.KOREA );
		return formatter.format(mDate);
	}
}